package com.sz.wu.model;

//商品的实体类
public class Product {
    private Integer uid;//商品id
    private String uname;//商品名称
    private Double price;//商品价格
    private Integer unum;//商品库存
    private String uimg;//商品图片

    public Product() {
    }

    public Product(Integer uid, String uname, Double price, Integer unum, String uimg) {
        this.uid = uid;
        this.uname = uname;
        this.price = price;
        this.unum = unum;
        this.uimg = uimg;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getUnum() {
        return unum;
    }

    public void setUnum(Integer unum) {
        this.unum = unum;
    }

    public String getUimg() {
        return uimg;
    }

    public void setUimg(String uimg) {
        this.uimg = uimg;
    }

    @Override
    public String toString() {
        return "Product{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", price=" + price +
                ", unum=" + unum +
                ", uimg='" + uimg + '\'' +
                '}';
    }
}
